package demo1;

public class Test5 {

    public int demo1;
    private int demo2;
    public static int demo3;

    static class InnerClass {
        public int demo4;
        private int demo5;
        public static int demo6;


        public void fun() {
          //  System.out.println(demo1);
           // System.out.println(demo2);
            System.out.println(demo3);
            System.out.println(demo4);
            System.out.println(demo5);
            System.out.println(demo6);
        }
    }

    public void fun() {
        InnerClass innerClass = new InnerClass();
        System.out.println(demo1);
        System.out.println(demo2);
        System.out.println(demo3);

        System.out.println(innerClass.demo4);
        System.out.println(innerClass.demo5);//外部类当中  可以访问静态内部类当中的所有成员
        System.out.println(InnerClass.demo6);


    }
}
